#include "../intervaltime.h"
// windows only
#ifdef WIN_APP

#define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers
#include <windows.h>

ZH_NAMESPACE_BEGIN

IntervalTime::IntervalTime()
{
	Reset();
}

unsigned int IntervalTime::Elapse()const
{
	return ::GetTickCount() - m_uLastTick;
}

bool IntervalTime::Reset()
{
	m_uLastTick = ::GetTickCount();
	return true;
}

ZH_NAMESPACE_END

#endif // WIN_APP
